#    entity language compiler Copyright (C) 2011 Vincent Belliard

#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation version 3 of the License.

#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.

#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

CMD=entity
OBJECTS=Entity.o
CMD2=Entity_new
OBJECTS2=Entity_new.o
OUTPUT_OPTION=-D_UNIX_ -g -Wall -Wno-unused-label --pipe
EFLAGS=
LDFLAGS=

$(CMD) : $(OBJECTS)
	$(CXX) -o $(CMD) $(LDFLAGS) $(OBJECTS) $(CHLIB) $(LIBS) $(LIBS_LOC)

Entity.C : Entity_builtins.entity                   Entity_class_pseudo_code.entity     Entity_expression_native_pseudo_code.entity  Entity_program_pseudo_code.entity  Entity_type.entity \
	Entity_callable_type.entity              Entity_compiler.entity              Entity_expression_os.entity                  Entity_pseudo_code.entity          Entity_type_pseudo_code.entity \
	Entity_callable_type_pseudo_code.entity  Entity_compiler_expressions.entity  Entity_expression_os_pseudo_code.entity      Entity_introspection.entity     Entity_pseudo_code_native.entity   Lib.entity \
	Entity_class.entity                      Entity.entity                       Entity_expression_pseudo_code.entity         Entity_module.entity            Entity_pseudo_code_os.entity \
	Entity_class_item.entity                 Entity_expression.entity            Entity_expression_type.entity                Entity_new.entity               Entity_pseudo_code_stub.entity \
	Entity_class_item_pseudo_code.entity     Entity_expression_native.entity     Entity_global.entity                         Entity_program.entity           Entity_scope.entity \
	Entity_grammar.entity \
	../src/entity
	../src/entity -c Entity.entity

$(CMD2) : $(OBJECTS2)
	$(CXX) -o $(CMD2) $(LDFLAGS) $(OBJECTS2) $(CHLIB) $(LIBS) $(LIBS_LOC)

Entity_new.C : Entity_builtins.entity                   Entity_class_pseudo_code.entity     Entity_expression_native_pseudo_code.entity  Entity_program_pseudo_code.entity  Entity_type.entity \
	Entity_callable_type.entity              Entity_compiler.entity              Entity_expression_os.entity                  Entity_introspection_use.entity  Entity_pseudo_code.entity          Entity_type_pseudo_code.entity \
	Entity_callable_type_pseudo_code.entity  Entity_compiler_expressions.entity  Entity_expression_os_pseudo_code.entity      Entity_introspection.entity     Entity_pseudo_code_native.entity   Lib.entity \
	Entity_class.entity                      Entity.entity                       Entity_expression_pseudo_code.entity         Entity_module.entity            Entity_pseudo_code_os.entity \
	Entity_class_item.entity                 Entity_expression.entity            Entity_expression_type.entity                Entity_new.entity               Entity_pseudo_code_stub.entity \
	Entity_class_item_pseudo_code.entity     Entity_expression_native.entity     Entity_global.entity                         Entity_program.entity           Entity_scope.entity \
	Entity_grammar.entity
	./entity -c Entity_new.entity

clean :
	rm -f $(CMD) $(OBJECTS) $(CMD2) $(OBJECTS2) Entity.C Entity_new.C
	rm -f core core.*
